package model

import (
	"time"
)

type AuAgent struct {
	Aid          int       `xorm:"not null pk autoincr unique(aid_uid) INT(11)"`
	Uid          int       `xorm:"not null unique(aid_uid) INT(11)"`
	SuperiorId   int       `xorm:"not null index INT(11)"`
	DevelopDeal  float64   `xorm:"not null DOUBLE(10,4)"`
	DirectDeal   float64   `xorm:"not null DOUBLE(10,4)"`
	IndirectDeal float64   `xorm:"not null DOUBLE(10,4)"`
	TotalMoney   float64   `xorm:"not null DOUBLE(10,4)"`
	Wallet       float64   `xorm:"not null DOUBLE(10,4)"`
	InviteCode   string    `xorm:"not null unique VARCHAR(80)"`
	CreateTime   time.Time `xorm:"not null DATETIME"`
}
